package com.bootdo.hotel.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 酒店会员
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-10-22 08:58:25
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class HotelMember extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;


	/*{
		name:"普通会员",
				code:'WX',
	},
	{
		name:"白金卡",
				code:'BJK',
	},
	{
		name:"钻石卡",
				code:'ZSK',
	}*/


	//id
	 @NotColumn 	@HapiFeild("id")
	private Long id;
	
	//姓名
		@HapiFeild("姓名")
	private String name;
	
	//性别
		@HapiFeild("性别")
	private Integer sex;
	
	//身份证号
		@HapiFeild("身份证号")
	private String idCard;
	
	//地址
		@HapiFeild("地址")
	private String address;
	
	//金额
		@HapiFeild("金额")
	private Double money;
	
	//级别
		@HapiFeild("级别")
	private String level;
	
	//openId
		@HapiFeild("openId")
	private String openId;
	
	//唯一ID
		@HapiFeild("唯一ID")
	private String uId;
	
	//电话
		@HapiFeild("电话")
	private String mobile;
	
	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;


	private String passWord;


	private String pic;

    public HotelMember(){
    	this.address="";
    	this.level = "WX";
    	this.money = 0d;
    	this.sex = 1;
    	this.passWord = "";
    	this.pic = "/static/img/user.png";
    	this.createTime = new Date();
    }

	public String getuId() {
		return uId;
	}

	public void setuId(String uId) {
		this.uId = uId;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：姓名
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：姓名
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：性别
	 */
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	/**
	 * 获取：性别
	 */
	public Integer getSex() {
		return sex;
	}
	/**
	 * 设置：身份证号
	 */
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	/**
	 * 获取：身份证号
	 */
	public String getIdCard() {
		return idCard;
	}
	/**
	 * 设置：地址
	 */
	public void setAddress(String address) {
		this.address = address;
	}
	/**
	 * 获取：地址
	 */
	public String getAddress() {
		return address;
	}
	/**
	 * 设置：金额
	 */
	public void setMoney(Double money) {
		this.money = money;
	}
	/**
	 * 获取：金额
	 */
	public Double getMoney() {
		return money;
	}
	/**
	 * 设置：级别
	 */
	public void setLevel(String level) {
		this.level = level;
	}
	/**
	 * 获取：级别
	 */
	public String getLevel() {
		return level;
	}
	/**
	 * 设置：openId
	 */
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	/**
	 * 获取：openId
	 */
	public String getOpenId() {
		return openId;
	}
	/**
	 * 设置：唯一ID
	 */
	public void setUId(String uId) {
		this.uId = uId;
	}
	/**
	 * 获取：唯一ID
	 */
	public String getUId() {
		return uId;
	}
	/**
	 * 设置：电话
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	/**
	 * 获取：电话
	 */
	public String getMobile() {
		return mobile;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
